/*** Eclipse Class Decompiler plugin, copyright (c) 2012 Chao Chen (cnfree2000@hotmail.com) ***/
package com.feiyue.basic.reader.util;

import java.io.File;

public class FileUtil {
	public static Boolean createFilePath(String paramString) {
		File localFile = new File(paramString);
		Boolean localBoolean = Boolean.valueOf(false);
		if ((!(localFile.exists())) || (!(localFile.isDirectory()))) {
			localFile.mkdir();
			localBoolean = Boolean.valueOf(true);
		}
		return localBoolean;
	}

	public static void deleteFile(String paramString) {
		new File(paramString).delete();
	}

	public static String getFile(String paramString) {
		if (paramString.lastIndexOf(".") > 0)
			return paramString.substring(0, paramString.lastIndexOf("."))
					.toLowerCase();
		return paramString;
	}
}